package com.mjlf.test_shiro.service;

import com.mjlf.test_shiro.entity.Person;
import org.springframework.stereotype.Service;

import javax.validation.Valid;

/**
 * @ClassName: LoginService
 * @Author: majun
 * @CreateDate: 2018/10/17 16:13
 * @Version: 1.0
 * @Description: TODO
 */

@Service
public class LoginService {

    public boolean login(String username, String password){
        switch (username){
            case "admin":
            case "guest":
                if("123456".equals(password)){
                    return true;
                }
                return false;
        }
        return false;
    }
}
